package com.tuanzi.loan.business.repository.galaxycard;

import com.tuanzi.loan.vo.request.galaxycard.DistributionStatSearchRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardDistributionStatSearchResponse;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * 分销统计 JOOQRepositoryInterface
 * @author JinRuiyang 2018/3/2 10:32:13
 */
public interface GalaxyCardDistributionStatRepository {

    Map<String, Integer> getProduct();

    Map<String, Integer> getChannel();

    Map<String,String> getPlatform();

    /**
     * DistributionStat查询
     * @param searchRequest 请求信息
     * @param pageable 分页信息
     * @return 响应列表
     */
    Page<GalaxyCardDistributionStatSearchResponse> list(DistributionStatSearchRequest searchRequest, Pageable pageable);
}